@extends('Admin.Layouts.header')
@section('body')

<body class="gray-bg">
    <div class="middle-box text-center loginscreen  animated fadeInDown">
        <div>
            <br><br>
           
            <img src="{{url('admin/img/hongnibalogo.png')}}" style="margin-left:300px;margin-bottom: 100px;" alt=""/>
         
        <div class="login-top">
             @if (count($errors) > 0)
                <div class="alert alert-danger">
                    <ul>
                    @if(is_object($errors))
                        @foreach ($errors->all() as $error)
                            <li class="alert alert-error">{{ $error }}</li>
                        @endforeach
                    @else
                          <li class="alert alert-error">{{ $errors }}</li>
                    @endif  
                    </ul>
                </div>
            @endif

            <form action="{{url('admin/dologin')}}" method="post">
                {{ csrf_field() }}
                <div class="login-ic">
                    <i ></i>
                    <input type="text" name="username"  value="{{old('username')}}" onFocus="this.value = '';" onBlur="if (this.value == '') {this.value = 'User name';}"/>
                    <div class="clear"> </div>
                </div>
                <div class="login-ic">
                    <i class="icon"></i>
                    <input type="password" name="password"  value="{{old('password')}}" onFocus="this.value = '';" onBlur="if (this.value == '') {this.value = 'password';}"/>
                    <div class="clear"> </div>
                </div>
            
                <div class="log-bwn">
                    <input type="submit"  value="登录" >
                </div>
                </form>
            </div>
        </div>
    </div>
   
</body>
@endsection
</html>